package com.luo.mapper;

import com.luo.pojo.Book;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author shang
 * @description 针对表【book】的数据库操作Mapper
 * @createDate 2025-05-27 11:36:33
 * @Entity com.luo.pojo.Book
 */
@Mapper
public interface BookMapper {

    int deleteByPrimaryKey(Long id);

    // 新增书籍
    int insert(Book record);

    int insertSelective(Book record);

    Book selectByPrimaryKey(Long id);

    // 修改数据
    int updateByPrimaryKeySelective(Book record);

    int updateByPrimaryKey(Book record);

    // 根据书名和作者查询书籍
    Book inquireAboutBooks(String bookName, String author);
}
